package cn.wolfcode.mongo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("strategy_comment")
public class StrategyComment {
    @Id
    private String id;
    private Long strategyId;
    private String strategyTitle;
    private Long userId;
    private String nickName;
    private int level;
    private String city;
    private String headImgUrl;
    private Date createTime;
    private String content;
    private List<String> thumbupList = new ArrayList<>();
    private int thumbupNum;
}
